﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Oliving.Edge.Model.DTSN
{

    [SugarTable("DTSN_CanningRecord")]
    [Serializable]
    public class DTSN_CanningRecord
    {
        #region 构造函数

        public DTSN_CanningRecord()
        {
        }

        #endregion

        #region 车辆及通道物流信息


        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "CR_ID")]
        public int CR_ID { get; set; }

        /// <summary>
        ///  1 熟料，2 散料
        /// </summary>
        [SugarColumn(ColumnDescription = "装载类型", ColumnName = "CR_Type")]
        public int CR_Type { get; set; }



        /// <summary> 
        /// Desc:车牌号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_Car", ColumnDescription = "车牌号", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_Car { get; set; }



        /// <summary> 
        /// Desc:车辆卡号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_CardCode", ColumnDescription = "车辆卡号", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_CardCode { get; set; }


        /// <summary> 
        /// Desc:车辆标载 
        /// Default: 
        /// Nullable:True 
        /// </summary>  
        [SugarColumn(ColumnName = "CR_truckweight", ColumnDescription = "车辆标载", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_truckweight { get; set; }

        /// <summary> 
        /// Desc:通道编号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_TongDaoCode", ColumnDescription = "通道编号", IsNullable = true)]
        public string CR_TongDaoCode { get; set; }




        /// <summary> 
        /// Desc:品种 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_Varieties", ColumnDescription = "品种", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_Varieties { get; set; }





        #endregion

        #region  订单信息

        /// <summary> 
        /// Desc:订单 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_Order", ColumnDescription = "订单", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_Order { get; set; }


        /// <summary> 
        /// Desc:重量序列号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_weightserialcode", ColumnDescription = "重量序列号", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_weightserialcode { get; set; }


        /// <summary> 
        /// Desc:客户编码 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_accountcode", ColumnDescription = "客户编码", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_accountcode { get; set; }


        /// <summary> 
        /// Desc:客户名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_accountname", ColumnDescription = "客户名称", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string CR_accountname { get; set; }


        #endregion

        #region 装货信息

        [SugarColumn(ColumnName = "CR_Date", ColumnDescription = "装载日期", IsNullable = true)]
        public DateTime CR_Date { get; set; }


        /// <summary> 
        /// Desc:开始时间 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_BeginTime", ColumnDescription = "开始时间", IsNullable = true)]
        public DateTime CR_BeginTime { get; set; }



        /// <summary> 
        /// Desc:结束时间 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_EndTime", ColumnDescription = "结束时间", IsNullable = true)]
        public DateTime CR_EndTime { get; set; }


        /// <summary> 
        /// Desc:请发量 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CR_Orderpreweight", ColumnDescription = "请发量", IsNullable = true)]
        public decimal CR_Orderpreweight { get; set; }

        /// <summary> 
        /// Desc:装载量 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [SugarColumn(ColumnName = "CR_LoadingCapacity", ColumnDescription = "装载量", IsNullable = true)]
        public decimal CR_LoadingCapacity { get; set; }


        #endregion

    }
}
